]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusServices/extensions: Remove custom stylesheet
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 22 May 2025 02:41:11 +0000 (04:41 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 1 Aug 2025 08:57:44 +0000 (08:57 +0000)
There is no custom styling left :-)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3750>

js/dbusServices/extensions/css/application.css [deleted file]
js/dbusServices/extensions/extensionPrefsDialog.js
js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml

diff --git a/js/dbusServices/extensions/css/application.css b/js/dbusServices/extensions/css/application.css
deleted file mode 100644 (file)
index e69de29..0000000
index ab7e684d704483223133c3a386d2e7aa8115905f..967288d52dbbc2af4b9e3a7f5b2c1389fd658f3f 100644 (file)
@@ -1,6 +1,4 @@
 import Adw from 'gi://Adw?version=1';
-import Gdk from 'gi://Gdk?version=4.0';
-import Gio from 'gi://Gio';
 import GLib from 'gi://GLib';
 import GObject from 'gi://GObject';
 import Gtk from 'gi://Gtk?version=4.0';
@@ -99,8 +97,6 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage {
     constructor(extension, error) {
         super();
 
-        this._addCustomStylesheet();
-
         const {uuid, name, url} = extension.metadata;
 
         let label =
@@ -134,17 +130,4 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage {
         ];
         this._errorMarkdown = lines.join('\n');
     }
-
-    _addCustomStylesheet() {
-        let provider = new Gtk.CssProvider();
-        let uri = 'resource:///org/gnome/Shell/Extensions/css/application.css';
-        try {
-            provider.load_from_file(Gio.File.new_for_uri(uri));
-        } catch (e) {
-            logError(e, 'Failed to add application style');
-        }
-        Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(),
-            provider,
-            Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
-    }
 }
index a233986a856885eef769a344c860c5c1f8f359bb..03ff4125a68f5e5858e411acd9c917bacbd043d3 100644 (file)
@@ -18,7 +18,6 @@
   </gresource>
 
   <gresource prefix="/org/gnome/Shell/Extensions">
-    <file>css/application.css</file>
     <file>ui/extension-error-page.ui</file>
   </gresource>
 </gresources>